
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-icon41"></use>
                    </svg>
                    <div class="name">知识点掌握情况</div>
                    <div class="fontclass">#el-icon-cxl-icon41</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-qiehuan"></use>
                    </svg>
                    <div class="name">切换</div>
                    <div class="fontclass">#el-icon-cxl-qiehuan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-shouye"></use>
                    </svg>
                    <div class="name">首页</div>
                    <div class="fontclass">#el-icon-cxl-shouye</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-shuaxin"></use>
                    </svg>
                    <div class="name">刷新</div>
                    <div class="fontclass">#el-icon-cxl-shuaxin</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-sousuo"></use>
                    </svg>
                    <div class="name">搜索</div>
                    <div class="fontclass">#el-icon-cxl-sousuo</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-wodejuhuasuan"></use>
                    </svg>
                    <div class="name">我的聚划算</div>
                    <div class="fontclass">#el-icon-cxl-wodejuhuasuan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-xiaoxizhongxin"></use>
                    </svg>
                    <div class="name">消息中心</div>
                    <div class="fontclass">#el-icon-cxl-xiaoxizhongxin</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-shezhi2"></use>
                    </svg>
                    <div class="name">设置 (2)</div>
                    <div class="fontclass">#el-icon-cxl-shezhi2</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-banben"></use>
                    </svg>
                    <div class="name"> -版本</div>
                    <div class="fontclass">#el-icon-cxl-banben</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-zhanghao"></use>
                    </svg>
                    <div class="name">账号</div>
                    <div class="fontclass">#el-icon-cxl-zhanghao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-shijian1"></use>
                    </svg>
                    <div class="name">时间</div>
                    <div class="fontclass">#el-icon-cxl-shijian1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-jichuxinxi"></use>
                    </svg>
                    <div class="name">基础信息</div>
                    <div class="fontclass">#el-icon-cxl-jichuxinxi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-icon411"></use>
                    </svg>
                    <div class="name">知识点掌握情况</div>
                    <div class="fontclass">#el-icon-cxl-icon411</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-dui"></use>
                    </svg>
                    <div class="name">对</div>
                    <div class="fontclass">#el-icon-cxl-dui</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-pifu"></use>
                    </svg>
                    <div class="name">皮肤</div>
                    <div class="fontclass">#el-icon-cxl-pifu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-bangzhu"></use>
                    </svg>
                    <div class="name">帮助</div>
                    <div class="fontclass">#el-icon-cxl-bangzhu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-shijian2"></use>
                    </svg>
                    <div class="name">时间</div>
                    <div class="fontclass">#el-icon-cxl-shijian2</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-zhongzhi"></use>
                    </svg>
                    <div class="name">重置</div>
                    <div class="fontclass">#el-icon-cxl-zhongzhi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-qiehuan1"></use>
                    </svg>
                    <div class="name">切换</div>
                    <div class="fontclass">#el-icon-cxl-qiehuan1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-fankui"></use>
                    </svg>
                    <div class="name">反馈</div>
                    <div class="fontclass">#el-icon-cxl-fankui</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-kaoshi"></use>
                    </svg>
                    <div class="name">考试</div>
                    <div class="fontclass">#el-icon-cxl-kaoshi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-icon-"></use>
                    </svg>
                    <div class="name">排序</div>
                    <div class="fontclass">#el-icon-cxl-icon-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-exit"></use>
                    </svg>
                    <div class="name">安全退出</div>
                    <div class="fontclass">#el-icon-cxl-exit</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-zhishidian"></use>
                    </svg>
                    <div class="name">知识点</div>
                    <div class="fontclass">#el-icon-cxl-zhishidian</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-tubiaochicundaochuSVGshangchuandaoalibaba-"></use>
                    </svg>
                    <div class="name">部门管理</div>
                    <div class="fontclass">#el-icon-cxl-tubiaochicundaochuSVGshangchuandaoalibaba-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-banben1"></use>
                    </svg>
                    <div class="name">版本</div>
                    <div class="fontclass">#el-icon-cxl-banben1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-chanpinguanli"></use>
                    </svg>
                    <div class="name">产品管理</div>
                    <div class="fontclass">#el-icon-cxl-chanpinguanli</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-gerenrenwushixiang"></use>
                    </svg>
                    <div class="name">个人任务事项</div>
                    <div class="fontclass">#el-icon-cxl-gerenrenwushixiang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-jiaoseguanli"></use>
                    </svg>
                    <div class="name">角色管理</div>
                    <div class="fontclass">#el-icon-cxl-jiaoseguanli</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-yonghuguanli"></use>
                    </svg>
                    <div class="name">用户管理</div>
                    <div class="fontclass">#el-icon-cxl-yonghuguanli</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-yuangongguanli"></use>
                    </svg>
                    <div class="name">员工管理</div>
                    <div class="fontclass">#el-icon-cxl-yuangongguanli</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-xiazai"></use>
                    </svg>
                    <div class="name">下载</div>
                    <div class="fontclass">#el-icon-cxl-xiazai</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-yonghushouquan"></use>
                    </svg>
                    <div class="name">用户授权</div>
                    <div class="fontclass">#el-icon-cxl-yonghushouquan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-jiaoseshouquan"></use>
                    </svg>
                    <div class="name">角色授权</div>
                    <div class="fontclass">#el-icon-cxl-jiaoseshouquan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-piliangshangchuan"></use>
                    </svg>
                    <div class="name">批量上传</div>
                    <div class="fontclass">#el-icon-cxl-piliangshangchuan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-chakanyilaiguanxishu"></use>
                    </svg>
                    <div class="name">查看依赖关系树</div>
                    <div class="fontclass">#el-icon-cxl-chakanyilaiguanxishu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-shezhimima"></use>
                    </svg>
                    <div class="name">设置密码</div>
                    <div class="fontclass">#el-icon-cxl-shezhimima</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-yonghujiaoseweihu"></use>
                    </svg>
                    <div class="name">用户角色维护</div>
                    <div class="fontclass">#el-icon-cxl-yonghujiaoseweihu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-wenjianquanxian"></use>
                    </svg>
                    <div class="name">文件权限</div>
                    <div class="fontclass">#el-icon-cxl-wenjianquanxian</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-xitongquanxian"></use>
                    </svg>
                    <div class="name">系统权限</div>
                    <div class="fontclass">#el-icon-cxl-xitongquanxian</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-jiaoseyonghu"></use>
                    </svg>
                    <div class="name">角色用户</div>
                    <div class="fontclass">#el-icon-cxl-jiaoseyonghu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-dabaoxiazai"></use>
                    </svg>
                    <div class="name">打包下载</div>
                    <div class="fontclass">#el-icon-cxl-dabaoxiazai</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-shijian"></use>
                    </svg>
                    <div class="name">事件</div>
                    <div class="fontclass">#el-icon-cxl-shijian</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-yanzhengma"></use>
                    </svg>
                    <div class="name">验证码</div>
                    <div class="fontclass">#el-icon-cxl-yanzhengma</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-danweiguanli"></use>
                    </svg>
                    <div class="name">单位管理</div>
                    <div class="fontclass">#el-icon-cxl-danweiguanli</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-mima"></use>
                    </svg>
                    <div class="name">密码</div>
                    <div class="fontclass">#el-icon-cxl-mima</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-guanbi"></use>
                    </svg>
                    <div class="name">关  闭</div>
                    <div class="fontclass">#el-icon-cxl-guanbi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-cxl-rili"></use>
                    </svg>
                    <div class="name">日历</div>
                    <div class="fontclass">#el-icon-cxl-rili</div>
                </li>
            
        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#el-icon-cxl-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
    </div>
</body>
</html>
